<!--Search Metadata-->
<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'searchMetadata',
    'type' => 'search',
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'get',
));
echo $form->textFieldRow($model, 'meta_data',
    array('class' => 'input-medium', 'prepend' => '<i class="icon-search"></i>'));
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => 'Go'));
$this->endWidget();
?>
<!--End search Metadata-->

<!--Search parent-->
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'searchParent',
    'type' => 'search',
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'get',
));
$data = CMap::mergeArray(array(null => 'None'), CHtml::listData(Catalog::model()->findAll(), 'id', 'catalog_name'));
$this->widget('bootstrap.widgets.TbSelect2', array(
    'model' => $model,
    'attribute' => 'parent_id',
    'asDropDownList' => true,
    'data' => $data,
//    'options' => array()
));
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => 'Filter'));
$this->endWidget();
?>